package com.grts.service.impl;


import java.util.List;

import org.springframework.stereotype.Service;

import com.grts.dao.CourseBeanMapper;
import com.grts.pojo.CourseBean;
import com.grts.service.ICourseService;
import com.grts.utils.PageModel;

import javax.annotation.Resource;

/**
 * Created by Administrator on 2018/4/4 0004.
 */
@Service
public class courseServiceImpl implements ICourseService {
    @Resource
    private CourseBeanMapper dao;
    @Override
    public int deleteByPrimaryKey(Integer cid) {
        return dao.deleteByPrimaryKey(cid);
    }

    @Override
    public int insert(CourseBean record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(CourseBean record) {
        return dao.insertSelective(record);
    }

    @Override
    public CourseBean selectByPrimaryKey(Integer cid) {
        return dao.selectByPrimaryKey(cid);
    }

    @Override
    public int updateByPrimaryKeySelective(CourseBean record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CourseBean record) {
        return dao.updateByPrimaryKey(record);
    }

	@Override
	public List<CourseBean> queryAll(CourseBean record) {
		// TODO Auto-generated method stub
		return dao.queryAll(record);
	}

	@Override
	public List<CourseBean> queryByPage(CourseBean record) {
		// TODO Auto-generated method stub
		return dao.queryByPage(record);
	}
}
